/**
 * Created by lenovo on 2017/12/21.
 */
$(function () {
    $.ajax({
        url: "/oauth/token",
        type: "POST",
        data: 'password=a&username=a&grant_type=password&scope=ui-scope',
        headers: {
            Accept: "application/json;charset=utf-8",
            Authorization: "Basic dWk6c2VjcmV0"
        },
        dataType: "json",
        success: function (data) {
            alert(data);
        }
    });

});